﻿namespace SARS.Entity.Factory
{
    public static class UserFactory
    {
        public static UserEntity CreateUser(RoleType role)
        {
            UserEntity user;
            switch (role)
            {
                case RoleType.Student:
                    user = new StudentEntity();
                    break;
                case RoleType.Tutor:
                    user = new TutorEntity();
                    break;
                case RoleType.Lecturer:
                    user = new LecturerEntity();
                    break;
                case RoleType.Coordinator:
                    user = new CoordinatorEntity();
                    break;
                case RoleType.Admin:
                    goto default;
                    //break;
                case RoleType.Manager:
                    goto default;
                    //break;
                default:
                    user = new StudentEntity();
                    break;
            }

            return user;
        }

        public static StudentEntity CreateStudent()
        {
            var student = new StudentEntity();
            return student;
        }
    }
}